//
//  ProductInfo.m
//  AirTrafficControl
//
//  Created by gu steve on 1/9/12.
//  Copyright (c) 2012 SteveGu. All rights reserved.
//

#import "ProductInfoLayer.h"

@interface ProductInfoLayer (Private)

- (void)_init;

@end


@implementation ProductInfoLayer

- (id)init
{
    self = [super init];
    
    if (self) {
        [self _init];
	}
    
	return self;
}

- (void)_init
{
    CCLabelTTF *label1 = [CCLabelTTF labelWithString:@"Air Traffic Control" fontName:@"TrebuchetMS-Bold" fontSize:14];
    CCLabelTTF *label2 = [CCLabelTTF labelWithString:@"Steve Gu" fontName:@"Georgia-Italic" fontSize:11];
    
    label1.color = ccc3(0x66, 0x66, 0x66);
    label2.color = ccc3(0x66, 0x66, 0x66);
    
    CGSize size = [[CCDirector sharedDirector] winSize];
	
    label1.position = ccp(size.width - label1.contentSize.width / 2 - 10, 30);
    label2.position = ccp(size.width - label2.contentSize.width / 2 - 10, 15);
    
    [self addChild:label1];
    [self addChild:label2];
}

@end
